[general]
name = zfs
version = 2.1.9
strip = yes
make = gmake
initramfs = yes
[hooks]
configure =
    ./configure --prefix=/usr --with-config=kernel \
        --with-linux="${CKMS_KERNEL_HDRDIR}" \
        --with-linux-obj="${CKMS_KERNEL_HDRDIR}"
build = ${MAKE} ${CKMS_MAKE_ARGS} -C module/ -j${CKMS_JOBS}
post_build =
    ./scripts/dkms.postbuild \
        -n "${CKMS_PACKAGE_NAME}" \
        -v "${CKMS_PACKAGE_VERSION}" \
        -a "${CKMS_KERNEL_MACHINE}" \
        -k "${CKMS_KERNEL_VERSION}" \
        -t "${CKMS_STATEDIR}"
[module.zavl]
path = module/avl
dest = extra/avl/avl
[module.znvpair]
path = module/nvpair
dest = extra/nvpair/znvpair
[module.zunicode]
path = module/unicode
dest = extra/unicode/zunicode
[module.zcommon]
path = module/zcommon
dest = extra/zcommon/zcommon
[module.zfs]
path = module/zfs
dest = extra/zfs/zfs
[module.icp]
path = module/icp
dest = extra/icp/icp
[module.zlua]
path = module/lua
dest = extra/lua/zlua
[module.spl]
path = module/spl
dest = extra/spl/spl
[module.zzstd]
path = module/zstd
dest = extra/zstd/zzstd
